import * as request from "@/utils/request"

const API_PREFIX = "/Logs"

/**
 * 获取登录日志分页
 */
export function getLoginLogsPage(params: LoginLogsQueryRequest) {
  return request.get<PageResponse<LoginLogsResponse>>({
    url: API_PREFIX + "/GetLoginLogsPage",
    params
  })
}

/**
 * 获取操作日志分页
 */
export function getOperateLogsPage(params: OperateLogsQueryRequest) {
  return request.get<PageResponse<OperateLogsResponse>>({
    url: API_PREFIX + "/GetOperateLogsPage",
    params
  })
}
